# Filename: reference.py

print  ('Simple Assignment')
shoplist = ['apple', 'mango', 'carrot', 'banana']
mylist = shoplist #mylist is just anohter name poinging to the same object!

del shoplist[0]
print ('shoplist is', shoplist)
print ('mylist is ', mylist)

print ('Copy by making a full slice')
mylist = shoplist[:] # make a copy by doing a full slice
del mylist[0] # remove first item

print('shoplist is ', shoplist)
print('mylist is ', mylist)


